package cn.icanci.mv.entity;

import java.util.List;

/**
 * @Author: icanci
 * @ProjectName: kangaroo-orm
 * @PackageName: cn.icanci.mv.entity
 * @Date: Created in 2020/8/31 14:43
 * @ClassAction: CustomerDTO 数据传输对象
 */
public class CustomerDTO {
    private Integer id;
    private String cname;
    private List<Order> orders;

    public CustomerDTO() {
    }

    public CustomerDTO(Integer id, String cname, List<Order> orders) {
        this.id = id;
        this.cname = cname;
        this.orders = orders;
    }

    public CustomerDTO(String cname, List<Order> orders) {
        this.cname = cname;
        this.orders = orders;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public List<Order> getOrders() {
        return orders;
    }

    public void setOrders(List<Order> orders) {
        this.orders = orders;
    }

    @Override
    public String toString() {
        return "CustomerDTO{" +
                "id=" + id +
                ", cname='" + cname + '\'' +
                '}';
    }
}
